import { IModeData, IActionData } from '../types/IContext';

export const staticModeList: IModeData[] = [
  {
    id: 1,
    title: '鸡翅'
  },
  {
    id: 2,
    title: '薯条'
  },
  {
    id: 3,
    title: '蛋挞'
  },
  {
    id: 4,
    title: '烤肉'
  },
  {
    id: 5,
    title: '红薯'
  },
  {
    id: 6,
    title: '牛排'
  },
  {
    id: 7,
    title: '烤鱼'
  },
  {
    id: 8,
    title: '烤虾'
  },
  {
    id: 9,
    title: '自定义'
  }
];

export const staticActionList: IActionData[] = [
  {
    id: 1,
    title: '烹饪温度',
    num: '80°C',
    unit: '°C',
    key: 'temp'
  },
  {
    id: 2,
    title: '烹饪时间',
    num: '40分钟',
    unit: '分钟',
    key: 'time'
  }
];

export const tempColumn = () => {
  let list = [];
  for (let i = 80; i <= 200; ) {
    list.push({ text: i, value: `${i}` });
    i = i + 5;
  }

  return list;
};

// 运行时间
export const timeColumn = () => {
  let list = [];
  for (let i = 1; i <= 60; ) {
    list.push({ text: i, value: `${i}` });
    i = i + 1;
  }

  return list;
};

// 预约时间-时
export const timeHourColumn = () => {
  let list = [];
  for (let i = 1; i <= 13; ) {
    list.push({ text: i, value: i });
    i = i + 1;
  }

  return list;
};
// 预约时间-分
export const timeMinColumn = () => {
  let list = [];
  for (let i = 1; i <= 60; ) {
    list.push({ text: i, value: i });
    i = i + 1;
  }

  return list;
};

export const deviceId = 'CMCC-591150-B812DABAE9D2';
